package com.mall.dao;

import com.mall.pojo.Shipping;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface ShippingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Shipping record);

    int insertSelective(Shipping record);

    Shipping selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Shipping record);

    int updateByPrimaryKey(Shipping record);

    int deleteByUidShippingId(Integer uid,Integer shippingId);

    int updateByUserId(Shipping record);

    List<Shipping> selectAllByUserId(@Param(value = "uid") Integer uid);

    Shipping selectByUserIdShippingId(Integer uid,Integer shippingId);

    List<Shipping> selectByShippingIdSet(@Param(value = "shippingIdSet") Set<Integer> shippingIdSet);
}